package juc.lock;

import java.util.Arrays;
import java.util.Random;
public class testPractice {
    public static void main(String[] args){
        int[] ints = randomConstructor();
        for (int i = 0; i < ints.length; i++) {
            System.out.println(i);
        }
    }
 
 
 
    public static int[] randomConstructor(){
        Random r = new Random();
        int[] array = new int[10] ;
        for (int i = 0; i < 10; i++){
        array[i] = r.nextInt(100);
         }
       Arrays.sort(array);
       return array;}
}